package tree;
public class Node {
	private Node left, right;

	private int value, depth;

	public Node(int value, int depth) {
		setLeft(null);
		setRight(null);
		setValue(value);
		setDepth(depth);
	}

	public Node getLeft() {
		return left;
	}

	public void setLeft(Node left) {
		this.left = left;
	}

	public Node getRight() {
		return right;
	}

	public void setRight(Node right) {
		this.right = right;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getDepth() {
		return depth;
	}

	public void setDepth(int depth) {
		this.depth = depth;
	}

	@Override
	public String toString() {
		return "value: " + this.getValue() + ", depth: " + this.getDepth();
	}
}
